package com.ytsky.hctechnologysys.entity;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;
import java.sql.Timestamp;

/**
 * @author Dell
 */
@Data

public class Employee {

    private  int uid;

    @NotBlank(message = "用户名不能为空")
    @Size(max = 20, message = "用户名长度不能超过20字")
    private String userName;

    @NotBlank(message = "密码不能为空")
    @Size(max = 20, message = "密码长度不能超过50字")
    private  String passWord;

    @NotBlank(message = "性别不能为空")
    @Size(max = 2, message = "培训名称长度不能超过2字")
    private String sex;

    @NotBlank(message = "请选择是否为管理员")
    @Size(max = 2, message = "输入长度不能超过2字")
    private String manager;

    private Timestamp pDate;

    private  Timestamp brithday;

    private String introduction;




}
